package ru.xpparty.scanner;

import ru.xpparty.scanner.model.ScanRequest;

/**
 * Heart of program. Performs call of underlying classes by given request and
 * returns result of scanning.
 * 
 * @author xp.party
 * 
 */
public class Scanner {
	private SocketScannerFactory factory;

	/**
	 * 
	 * @param factory
	 *            factory of socket scanners
	 */
	public void setSocketScannerFactory(SocketScannerFactory factory) {
		this.factory = factory;
	}

	/**
	 * Performs scanning ports on host found in given request. Returns result of
	 * scanning.
	 * 
	 * @param request
	 *            request to scanner
	 * @return result of scanning
	 */
	public ScanResult scan(ScanRequest request) {
		return null;
	}
}
